﻿<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE xsl:content [
  <!ENTITY nbsp "&#160;">
  <!ENTITY raquo "&#187;">
  <!ENTITY copy "&#169;">
]>
<?xml-stylesheet href="~/Views/Master.xslt" type="text/xsl"?>
<?xml-options cache="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ?>
<!-- TODO:
  debug
    transform caching
  doctype
  include
  resources
  doctype  xhtml1-transitional
  schema
  whitespace
  indent
-->
<!-- resourceHelper is used to retrieve string resources -->
<content doctype="xhtml1-strict">
  <html>
    <head>
      <title>
        Samples
      </title>
      <link rel="stylesheet" type="text/css" href="/_Content/Site.css" />
      <style type="text/css">
        button em
        {
        font-style: normal;
        font-weight: normal;
        text-decoration: underline;
        }
      </style>
      <style id="accessoff" type="text/css">
        button em
        {
        text-decoration: none !important;
        }
      </style>
      <!-- Fix non standard button element behavior in IE prior to v8 -->
      <ifie test="lt IE 8">
        <style type="text/css">
          button { behavior: url(_scripts/button.htc); }
        </style>
      </ifie>
    </head>
    <body>
      <pageContent>
        <table border="1" style="border-collapse: collapse; width: 600px" xmlns:s="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
          <tr>
            <th>Sample</th>
            <th>Description</th>
          </tr>
          <tr forEach="document('~/Views/Home/Web.sitemap')/s:siteMap/s:siteMapNode[@url='Home']/s:siteMapNode">
            <td>
              <a>
                <attribute name="href">
                  <valueOf select="concat('/home/',@url)" />
                </attribute>
                <valueOf condition="not(@title)" select="document(concat('~/Views/Home/',@url,'.xml'))//title[1]" />
                <valueOf condition="@title" select="@title" />
              </a>
            </td>
            <td>
              <valueOf condition="@description" select="@description" />
              <valueOf condition="not(@description)" select="document(concat('~/Views/Home/',@url,'.xml'))//head[1]/meta[@name='description']/@content" />
            </td>
          </tr>
          <tr>
            <td></td>
            <td>Variables</td>
          </tr>
          <tr>
            <td></td>
            <td>Templates</td>
          </tr>
          <tr>
            <td></td>
            <td>Javascript</td>
          </tr>
          <tr>
            <td></td>
            <td>Ajax</td>
          </tr>
          <tr>
            <td></td>
            <td>Validation</td>
          </tr>
          <tr>
            <td>

            </td>
            <td>Resources</td>
          </tr>
        </table>
        <wizardNav name="Home" />
      </pageContent>
    </body>
  </html>
</content>